package com.gzx.asr.xxljob;

import com.gzx.asr.modular.funasr.service.FunAsrJobService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author xbl
 * &#064;description  话单语音转文字定时任务
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class VoiceToTextXxlJob {

    private final FunAsrJobService jobService;

    //语音转文字：每次按照最大id扫描出100条
    @XxlJob("voiceToTextJob")
    public void voiceToTextJob() {
        jobService.voiceToTextJob();
    }

}
